package com.ruoyi.logic.service.impl;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.logic.domain.ElectricityGeneration;
import com.ruoyi.logic.service.ElectricityGenerationService;
import com.ruoyi.logic.mapper.ElectricityGenerationMapper;
import com.ruoyi.logic.vo.ElectricityVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ZKC
* @description 针对表【electricity_generation】的数据库操作Service实现
* @createDate 2024-12-16 08:47:39
*/
@Service
public class ElectricityGenerationServiceImpl extends ServiceImpl<ElectricityGenerationMapper, ElectricityGeneration>
    implements ElectricityGenerationService{

    @Autowired
    ElectricityGenerationMapper electricityGenerationMapper;

    @Override
    public List<ElectricityVO> getTableData(DateTime startDate, DateTime endDate) {
        return electricityGenerationMapper.getTableData(startDate,endDate);
    }
}




